﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KPIS.GERP.GHRMS.BLL;
using KPIS.GERP.GHRMS.IBLL;

namespace KPIS.GERP.GHRMS.APP.App_UI.Forms
{
	public partial class TestCbbg : System.Web.UI.Page
	{
		private IMasDistrictBLL _districtBll = new MasDistrictBLL();

		protected void Page_Load(object sender, EventArgs e)
		{
			//var list = _districtBll.ListDistricts();//..LoadEmployeeAddress(400235, (int?)null).Tables[0]; 

			ComboBoxGrid1.ChangeData(
				typeof(MasDistrictBLL),// TypeOf "KPIS.GERP.GHRMS.APP.App_UI.Controls.ComboBoxGrid.ConfigurationCbbGrid.TestClass",
				"ListDistricts",
				null, 
				null,
				new List<string> {"ตำบล", "อำเภอ", "จังหวัด"},
				new List<string> {"Name", "Amphurs.Name", "Amphurs.Provinces.Name"},
				"Sequence",
				"ConcatDistrictAmphurProvince",
				10);
		}
	}
} 